package xin.marcher.module.inventory.domain.bo;

import lombok.Data;

/**
 * 分桶扩容库存上下文对象
 *
 * 
 */
@Data
public class BucketCapacityContext {

    /**
     * 分桶剩余库存
     */
    private Integer residueNum;
    /**
     * 是否需要扩容
     */
    private Boolean isCapacity;
    /**
     * 扩容请求对象
     */
    private BucketCapacity bucketCapacity;

    public BucketCapacityContext(Integer residueNum, Boolean isCapacity, BucketCapacity bucketCapacity) {
        this.isCapacity = isCapacity;
        this.residueNum = residueNum;
        this.bucketCapacity = bucketCapacity;
    }
}
